﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.MultilineAttribute
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System;

#nullable disable
namespace UnityEngine
{
  /// <summary>
  ///   <para>Attribute to make a string be edited with a multi-line textfield.</para>
  /// </summary>
  [AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = false)]
  public sealed class MultilineAttribute : PropertyAttribute
  {
    public readonly int lines;

    /// <summary>
    ///   <para>Attribute used to make a string value be shown in a multiline textarea.</para>
    /// </summary>
    /// <param name="lines">How many lines of text to make room for. Default is 3.</param>
    public MultilineAttribute() => this.lines = 3;

    /// <summary>
    ///   <para>Attribute used to make a string value be shown in a multiline textarea.</para>
    /// </summary>
    /// <param name="lines">How many lines of text to make room for. Default is 3.</param>
    public MultilineAttribute(int lines) => this.lines = lines;
  }
}
